using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Module.Core.DAO;
using Module.Core.EntitiesInfo;

using Module.Common.Models;

namespace Module.Core.DAO
{
    public class CMSUserRoleZoneBL
	{
        #region Fields
        protected string connectionStringName;
        #endregion


        public static int Insert(CMSUserRoleZoneInfo cmsUserRoleZoneInfo)
        {
            try
            {
                return new CMSUserRoleZoneDAO().Insert(cmsUserRoleZoneInfo);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        public static void Delete(CMSUserRoleZoneInfo cmsUserRoleZoneInfo)
        {
            try
            {
                new CMSUserRoleZoneDAO().Delete(cmsUserRoleZoneInfo);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        
        public static CHRTList<CMSUserRoleZoneInfo> CheckUserRoleZone(int roleID, int zoneIDLang, int lang)
        {
            try
            {
                return new CMSUserRoleZoneDAO().CheckUserRoleZone(roleID, zoneIDLang,lang);
            }
            catch (Exception ex)
            {
                throw;
            }
        }

		public CHRTList<CMSUserRoleZoneInfo> SelectAll()
		{
			try
			{
				return new CMSUserRoleZoneDAO().SelectAll();
			}
			catch (Exception ex)
			{
				throw;
			}
		}

	}
}
